package de.hauschild.gmltracer.gml.impl;

import java.util.List;

import de.hauschild.gmltracer.gml.Environment;
import de.hauschild.gmltracer.gml.Interpreter;
import de.hauschild.gmltracer.gml.Token;
import de.hauschild.gmltracer.gml.TokenStack;

/**
 * A implementation of {@link Interpreter} using GML.
 * 
 * @author Klaus Hauschild
 * @since 1.0.0
 */
public class GmlInterpreter implements Interpreter {

  @Override
  public void interpret(final Environment environment, final TokenStack tokenStack, final List<Token> tokenSequence) {
    for (final Token token : tokenSequence) {
      token.evaluate(environment, tokenStack);
    }
  }

}
